/*
* berton
*/
package com.pitop.supplier.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.pitop.supplier.entity.SupplierCategory;

/**
 * 供应商类型 api请求熔断器
 * @author berton
 */
@FeignClient(value = "pps-cloud-demo-provider", fallback = SupplierCategoryFeignApiImpl.class)
public interface SupplierCategoryFeignApi {
    /**
     * 查询SupplierCategory一个详情信息
     * @param id 
     * @param code 类型编码
     * @return BeanRet
     */
    @GetMapping(value = "/supplierCategory/load")
    SupplierCategory load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询SupplierCategory一个详情信息
     *
     * @param id 
     * @return BeanRet
     */
    @GetMapping(value = "/supplierCategory/load/id/{id}")
    SupplierCategory loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询SupplierCategory一个详情信息
     *
     * @param code 类型编码
     * @return BeanRet
     */
    @GetMapping(value = "/supplierCategory/load/code/{code}")
    SupplierCategory loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除SupplierCategory
     *
     * @return BeanRet
     */
    @DeleteMapping("/supplierCategory/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询SupplierCategory信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/supplierCategory/list")
    List<SupplierCategory> list(@RequestBody SupplierCategory supplierCategory,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询SupplierCategory信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/supplierCategory/list/by")
    List<SupplierCategory> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计SupplierCategory信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/supplierCategory/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计SupplierCategory信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/supplierCategory/count")
    Integer count(@RequestBody SupplierCategory supplierCategory);



    /**
     * 创建SupplierCategory
     *
     * @return BeanRet
     */
    @PostMapping("/supplierCategory/build")
    SupplierCategory build(@RequestBody SupplierCategory supplierCategory);


    /**
     * 修改SupplierCategory
     *
     * @return BeanRet
     */
    @PutMapping("/supplierCategory/modify")
    SupplierCategory modify(@RequestBody SupplierCategory supplierCategory);



}
